import request from '@/utils/request'



// 分页列表查询
export function authenticationList(pageNo, pageSize) {
  return request({
    url: 'admin/enterpriseCertification/PageInfo',
    method: 'get',
    params: {
      pageNo,
      pageSize
    }
  })
}




export function updateUserFlagById(id) {
  return request({
    url: '/admin/users/queryById',
    method: 'get',
    params: {
      id
    }
  })
}

// 删除
export function deleteAuthentication(id) {
  return request({
    url: `admin/enterpriseCertification/deleteById`,
    method: 'delete',
    params: {
      id
    }
  });
}


// 添加方法
export function add(data) {
  return request({
    url: '/admin/users/add',
    method: 'post',
    data
  })
}


export function updateByState(data) {
  return request({
    url: 'admin/enterpriseCertification/updateByState',
    method: 'post',
    data
  })
}
